<template>
  <div>
    <el-dialog title="注册" :visible.sync="show.RegisterFormVisible" :size="'tiny'">
      <RegisterFrom @close="show.RegisterFormVisible=false"></RegisterFrom>
    </el-dialog>
    <el-dialog title="登陆" :visible.sync="show.LogInFormVisible1" :size="'tiny'" @close="" @open="openlogin">
      <LoginForm @close="show.LogInFormVisible1=false" ref="log"></LoginForm>
    </el-dialog>
    <el-dialog title="创建活动通知" :visible.sync="show.CreateNoticeFormVisible" :size="'tiny'">
      <CreateNoticeForm @close="show.CreateNoticeFormVisible=false"></CreateNoticeForm>
    </el-dialog>
    <el-dialog title="创建群组" :visible.sync="show.CreateGroupFormVisible" :size="'tiny'">
      <CreateGroupForm @close="show.CreateGroupFormVisible=false"></CreateGroupForm>
    </el-dialog>
    <el-dialog title="群组" :visible.sync="show.SearchFormVisible" :size="'tiny'">
      <SearchGroupForm @close="show.SearchFormVisible=false"></SearchGroupForm>
    </el-dialog>
    <el-dialog title="朋友" :visible.sync="show.SearchFriendVisible" :size="'tiny'">
      <SearchFriendForm @close="show.SearchFriendVisible=false"></SearchFriendForm>
    </el-dialog>
  </div>
</template>
<script>
  import RegisterFrom from './dialogs/register'
  import LoginForm from './dialogs/login'
  import CreateNoticeForm from './dialogs/create-notice'
  import CreateGroupForm from './dialogs/create-group'
  import SearchGroupForm from './dialogs/search-group'
  import SearchFriendForm from './dialogs/search-friend'

  export default {
    components: {RegisterFrom, LoginForm, CreateNoticeForm, CreateGroupForm, SearchGroupForm, SearchFriendForm},
    props: ['show'],
    data () {
      return {
        formLabelWidth: '120px',
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
//      弹窗显示的时候初始化数据
      openlogin () {
//        this.$refs.log.Init()
      }
    }
  }
</script>
<style>

</style>
